<template>
 <div>
   <div>当前计数: {{ counter.count }}</div>
  <div>双倍计数: {{ counter.doubleCount }}</div>
  <!-- <el-button @click="counter.increment()">+1</el-button>
  <el-button @click="counter.decrement()">-1</el-button> -->
 </div>
</template>
<script setup>
import { useCounterStore } from "@/store/counter.js";
const counter = useCounterStore();
</script>
<style scoped>
</style>